<template>
    <div>
        学生姓名:{{ name }}
        <button @click="appendSignUpList(name)">报名</button>
        <ol>
            <li v-for="msg in allMsg">
                宣传已发布消息：{{ msg }}
            </li>
        </ol>
    </div>
</template>

<script setup lang="ts" name='Student'>
import { ref, reactive, inject } from "vue";


defineProps(['name'])


const allMsg = inject('allMsg', [''])
const appendSignUpList = inject('appendSignUpList', () => { })


</script>

<style scoped></style>